package com.iwhalecloud.citybrain.flow.platform.manager.application.common.enums;

/**
 * Enum - 实例状态
 *
 * @author lilh
 * @date 2019-07-25 16:13
 */
public enum ProcessInstanceStatusEnum {

    //状态：正常-NORMAL,预警-WARNING,超期-TIMEOUT,终止-END,暂停-PAUSE, 撤销-RECALL, 错误-ERROR

    /**
     * 正常
     */
    NORMAL("NORMAL", "正常"),

    REJECT("REJECT", "驳回"),

    WARNING("WARNING", "预警"),

    TIMEOUT("TIMEOUT", "超期"),

    END("END", "终止"),

    PAUSE("PAUSE", "暂停"),

    RECALL("RECALL", "撤销"),

    ERROR("ERROR", "错误"),

    ROLLBACK("ROLLBACK", "退回");


    private String code;

    private String desc;

    ProcessInstanceStatusEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }}
